package cn.kooki.app.duobao.data.Bean.share;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xiong on 2015/12/19.
 */
public class ShareListItem implements Parcelable {


    /**
     * id : 5
     * uid : 152157
     * content : 今年年终奖就靠这个了。能上个大点的红包就好了。
     * 挺好。
     * title : 爽歪歪，这概率
     * qishu : 212146003
     * shopid : 35
     * photolist : ["http://ss.5qbao.com/statics/uploads/shaidan/20151214/73695361085048.jpg","http://ss.5qbao.com/statics/uploads/"]
     * time : 1450085073
     * username : 朝天门
     * shopname1 : 微信红包8元
     */

    public String id;
    public String uid;
    public String content;
    public String title;
    public String qishu;
    public String shopid;
    public String time;
    public String username;
    public String shopname1;
    public ArrayList<String> photolist;
    public String status;
    /**
     * 中奖号码
     */
    public String user_code;
    /**
     * 揭晓时间
     */
    public String end_time;
    /**
     * 参与人次
     */
    public String gonumber;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.uid);
        dest.writeString(this.content);
        dest.writeString(this.title);
        dest.writeString(this.qishu);
        dest.writeString(this.shopid);
        dest.writeString(this.time);
        dest.writeString(this.username);
        dest.writeString(this.shopname1);
        dest.writeStringList(this.photolist);
        dest.writeString(this.user_code);
        dest.writeString(this.end_time);
        dest.writeString(this.gonumber);
    }

    public ShareListItem() {
    }

    protected ShareListItem(Parcel in) {
        this.id = in.readString();
        this.uid = in.readString();
        this.content = in.readString();
        this.title = in.readString();
        this.qishu = in.readString();
        this.shopid = in.readString();
        this.time = in.readString();
        this.username = in.readString();
        this.shopname1 = in.readString();
        this.photolist = in.createStringArrayList();
        this.user_code = in.readString();
        this.end_time = in.readString();
        this.gonumber = in.readString();
    }

    public static final Parcelable.Creator<ShareListItem> CREATOR = new Parcelable.Creator<ShareListItem>() {
        public ShareListItem createFromParcel(Parcel source) {
            return new ShareListItem(source);
        }

        public ShareListItem[] newArray(int size) {
            return new ShareListItem[size];
        }
    };
}
